package com.tbs.parkingsaleapp.UI.Adapters.Sorters;

import com.tbs.parkingsaleapp.DataTool.RecommendationCalculator;
import com.tbs.parkingsaleapp.Http.JsonData.ParkResult;
import com.tbs.parkingsaleapp.SystemManager.SystemDataMananger;

import java.util.Comparator;

public class DefalutSorter implements Comparator<ParkResult> {


    @Override
    public int compare(ParkResult o1, ParkResult o2) {
        return o2.Recommond().avg- o1.Recommond().avg>=0?1:-1;
    }
}
